#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
	char ch=0;
	while ((ch = getchar()) != '#')
	{
		if (ch == 'b')
		{
			printf("Step 1\n");
			break;
		}
		switch (ch) {
		case '\n':break;
		case 'c':printf("Step 1\n"); break;
		case 'h':printf("Step 1\n");
				 printf("Step 3\n");
				 printf("Step 2\n"); break;
		default: printf("Step 1\n"); 
				 printf("Step 2\n"); break;
		}
	}
	printf("Done\n");

	return 0;
}